function search_corp(){

	var search_corp_name = $("#search_corp_name").val();
	var url;
	url="Ajax_Search_Corp.asp";
	$.post(
	url,
	{
	corp_name:search_corp_name
	},
	function (msg) {
		
		var r_value=msg;

		if (r_value=="")
		{
			alert("企业不存在")
			document.getElementById("hotel_list2").innerHTML ="";
		}
		else
		{
			document.getElementById("hotel_list2").innerHTML = r_value
		}
	}
	);

}

function Select_Corp(Left_ID,Right_id){
		var Left = document.getElementById(Left_ID);
		var Right = document.getElementById(Right_id);
	   if(Right.value!=''){
	   for (i=0 ; i<=Right.options .length -1 ; i++)
		  {
			if (Right.options [i].selected)
			  {

				Left.value=Right.options[i].text;
				
				document.getElementById("corp_id").value =Right.options[i].value;

			  }  
			  
		  }  
	   
	
		}
}
